package com.sudo.service.admin.config;

import java.util.concurrent.ScheduledFuture;

public class SchedulingTask {
    volatile ScheduledFuture<?> future;

    public void cancel() {
        ScheduledFuture<?> future = this.future;
        if (null != future) {
            future.cancel(true);
        }
    }

}
